#include "FuelSelector.h"

using namespace GASPUMP;

FuelSelector::FuelSelector(void)
{
}
void FuelSelector:: ON(void){FuelSelector_state=Ready;}

void FuelSelector:: OFF(void){FuelSelector_state=Not_Ready;}

std::string FuelSelector::fuelGrade(int grad)
{
	std::string gradeFuel;


	if (grad==0)
		{
			m_fuelGrade=REGULAR;
			gradeFuel = "you chose Regular ";
		}

	else if (grad==1)
		{
			m_fuelGrade=MIDGRADE;
			gradeFuel = "you chose MidGrade ";
		}
	else  
		{
			m_fuelGrade=PREMIUM;
			gradeFuel = "you chose Premium";
		}
	return gradeFuel;
}


FuelSelector::~FuelSelector(void)
{
}
